// 产品选项卡
var h6s = document.querySelectorAll("h6");
var dets = document.getElementsByClassName("detail")
var span = document.querySelector("span");

for (let j = 0; j < h6s.length; j++){
    h6s[j].onclick = function () {
        for (var i = 0; i < h6s.length; i++){
            h6s[i].className = "";
            dets[i].className = "detail";
        }
        this.className = "active"
        dets[j].className = "detail active";
        span.innerHTML = this.firstElementChild.innerHTML;
        
    }
}